<?php
echo 'hola';
?>

<!DOCTYPE HTML>

<html>
   <head>
      <title>
         .:: Delivery351 ::.
      </title>
		
	<meta name="tipo_contenido"  content="text/html;" http-equiv="content-type" charset="utf-8">
	<link type="text/css" rel="stylesheet" href="/css/estilo.css" />
   </head>

   <body>
      <div id="fb-root"></div>
       <script>
	 var name = "";
		
	 window.fbAsyncInit = function() {
    	    FB.init({
      	       appId      : '423263144390114', // App ID
      	       status     : true, // check login status
      	       cookie     : true, // enable cookies to allow the server to access the session
      	       xfbml      : true  // parse XFBML
    	    });

    	    // Additional initialization code here
    	    FB.Event.subscribe('auth.authResponseChange', function(response) {
  	       document.reload();
	    });
			
    	    FB.getLoginStatus(function(response) {
  	       if (response.status === 'connected') {
  	          document.getElementById('bienvenido').style.display = 'block';
  	       } else if (response.status === 'not_authorized') {
    	          document.getElementById('registrarse').style.display='block';
  	       } else {
    	 	 document.getElementById('iniciar-sesion').style.display='block';
  	       }
 	    }, true);
  	 };
  		
  	 // Load the SDK Asynchronously
  	 (function(d){
     	    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     	    if (d.getElementById(id)) {return;}
     	    js = d.createElement('script'); js.id = id; js.async = true;
     	    js.src = "//connect.facebook.net/es_LA/all.js";
     	    ref.parentNode.insertBefore(js, ref);
	 }(document));
      </script>
      
      <div>
         <fb:login-button   registration-url="http://www.delivery351.xtrweb.com/facebook/registro.php" />
      </div>
         
   </body>
</html>